package com.tarena.practice.manage.mapper;

import java.util.List;

import com.tarena.practice.manage.pojo.Topic;
import com.tarena.practice.manage.util.MyMapper;
import com.tarena.practice.manage.vo.PageUtils;


public interface TopicMapper extends MyMapper<Topic>{

	List<Topic> queryTopicPage(PageUtils<Topic> pageUtils);

	int queryTopicCount(PageUtils<Topic> pageUtils);


	void updateTopicById(Topic topic);

	Topic queryTopicById(Integer topicId);

	void updateTopicContent(Topic topic);

	void addTopic(Topic topic);
	
	List<Topic> findAllTopic();
	
}
